package summer_vacation.shilaihong.threeday;

/**
 * Created by alh on 2015/9/5.
 */
public class N11 {
    public static void main(String[] args){
        int N=100;
        boolean[] a=new boolean[N+1];
        for(int i=0;i<N;i++)a[i]=true;
        for(int i=2;i<N;i++){
            for(int j=2*i;j<=N;j+=i){
                a[j]=false;
            }
        }
        for(int i=2;i<=N;i++){
            if(a[i])System.out.println(i);
        }
    }
}
